import http from "@/utils/request";

// 发送验证码
export const getCode = (data) => {
  return http.post("/get/code", data);
};
// 注册用户
export const useraUthentication = (data) => {
  return http.post("/user/authentication", data);
};
// 登录
export const Login = (data) => {
  return http.post("/login", data);
};
// 权限管理列表
export const authAdmin = (params) => {
  return http.get("/auth/admin", { params });
};
// 菜单权限数据
export const userGetmenu = () => {
  return http.get("/user/getmenu");
};
// 菜单权限修改
export const userSetMune = (data) => {
  return http.post("/user/setmenu", data);
};
// 菜单权限列表
export const getMenuList = (params) => {
  return http.get("/menu/list", { params });
};
// 权限下拉列表
export const MenuSelectList = () => {
  return http.get("/menu/selectlist");
};
// 用户数据修改
export const UpdateUser = (data) => {
  return http.post("/update/user", data);
};
// 获取用户权限
export const UserPermission = () => {
  return http.get("/menu/permissions");
};
// 陪护师头像
export const PhotoList = () => {
  return http.get("/photo/list");
};
// 陪护师创建

export const Createpehushi = (data) => {
  return http.post("/companion", data);
};
// 陪护师列表
export const getPeihushiList = (params) => {
  return http.get("/companion/list", { params });
};
// 删除
export const DeletePEihushi = (data) => {
  console.log(data);

  return http.post("/delete/companion", data);
};
// 订单列表
export const adminOrder = (params) => {
  return http.get("/admin/order", { params });
};
// 服务状态完成
export const UpdateState = (data) => {
  return http.post("/update/order", data);
};
